/**
 * @author SilverBiology, LLC
 * @website http://code.google.com/p/gbif-spreadsheet-processor/
*/
Ext.namespace('GBIF');
Ext.namespace('GBIF.GeoSpatial')

GBIF.GeoSpatial.BUS = new Ext.util.Observable();
GBIF.GeoSpatial.BUS.addEvents('addTab'); 

Ext.onReady(function(){
	
	Ext.QuickTips.init();
	
	// Disable browser right click
	Ext.fly(document.body).on('contextmenu', function(e, target) {
		e.preventDefault();
	});	

	var tabManager = new GBIF.GeoSpatial.TabManager({
	});

	var vp = new Ext.Viewport({
			layout: 'border'
		,	items: [{
					region: 'center'
				,	border: false
				,	layout: 'fit'
//				,	tbar: [ Config.General.LogoText ]
				,	tbar: [ '<div style="font-size: 15px; font-weight: bold; height: 20px; color: rgb(31, 82, 124); padding-left: 10px;">GPAAMP Manager</div>' ]
				,	items: [ tabManager ]
			}]
	});

	/*
	 * Removes mask after loading data.
	 */
	Ext.get('loading').remove();
	Ext.get('loading-mask').fadeOut({remove:true});	
			
});